package cn.wolfcode.luowowo.acticle.service.impl;


import cn.wolfcode.luowowo.acticle.domain.QuestionAndAnswerContent;
import cn.wolfcode.luowowo.acticle.mapper.QuestionAndAnswerContentMapper;
import cn.wolfcode.luowowo.acticle.service.IQuestionAndAnswerContentService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Service
@Transactional
public class QuestionAndAnswerContentServiceImpl implements IQuestionAndAnswerContentService {
    @Autowired
    private QuestionAndAnswerContentMapper questionAndAnswerContentMapper;

    @Override
    public QuestionAndAnswerContent get(Long id) {
        return questionAndAnswerContentMapper.selectByPrimaryKey(id);
    }
}
